home *** CD-ROM | disk | FTP | other *** search
/ EROS 2 / EROS 2.iso / mac / EROS vol.2 / EROS vol.DXR / 00271.ls < prev    next >
Encoding:
Text File  |  1995-12-20  |  1.3 KB  |  45 lines

  1. on m4
  2.   global md1, rantime, mp, s4, e4
  3.   set the cursor of sprite 4 to 4
  4.   set rantime to the ticks
  5.   set mp to 4
  6.   if the castNum of sprite 4 = e4 then
  7.     set the castNum of sprite 4 to s4
  8.     set md1 to the duration of cast s4 - 3
  9.   else
  10.     set md1 to the duration of cast (the castNum of sprite 4 + 1) - 3
  11.     set the castNum of sprite 4 to the castNum of sprite 4 + 1
  12.   end if
  13.   set the cursor of sprite 4 to [50, 51]
  14. end
  15.  
  16. on m5
  17.   global md2, rantime, mp, s5, e5
  18.   set the cursor of sprite 5 to 4
  19.   set rantime to the ticks
  20.   set mp to 5
  21.   if the castNum of sprite 5 = e5 then
  22.     set the castNum of sprite 5 to s5
  23.     set md2 to the duration of cast s5 - 3
  24.   else
  25.     set md2 to the duration of cast (the castNum of sprite 5 + 1) - 3
  26.     set the castNum of sprite 5 to the castNum of sprite 5 + 1
  27.   end if
  28.   set the cursor of sprite 5 to [50, 51]
  29. end
  30.  
  31. on m6
  32.   global md3, rantime, mp, s6, e6
  33.   set the cursor of sprite 6 to 4
  34.   set rantime to the ticks
  35.   set mp to 6
  36.   if the castNum of sprite 6 = e6 then
  37.     set the castNum of sprite 6 to s6
  38.     set md3 to the duration of cast s6 - 3
  39.   else
  40.     set md3 to the duration of cast (the castNum of sprite 6 + 1) - 3
  41.     set the castNum of sprite 6 to the castNum of sprite 6 + 1
  42.   end if
  43.   set the cursor of sprite 6 to [50, 51]
  44. end
  45.